package com.feiyun.model.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;

import javax.validation.constraints.PastOrPresent;
import javax.validation.constraints.Pattern;
import java.time.LocalDateTime;

/**
 * @ClassName UploadRecordInfo
 * @author: xingming
 * @Description:
 * @time 2023/04/02 22:04:16
 * @Version 1.0
 */

@Setter
@Getter
@ApiModel(value = "上传记录信息")
@TableName("t_wx_file_upload_interface")
public class UploadRecordInfo {

    @ApiModelProperty("用户唯一ID")
    @TableId(value = "id")
    private String id;

    @ApiModelProperty("更新时间")
    @TableField(value = "upload_time")
    @JsonFormat(pattern = "yyyy-MM-dd hh:mm:ss", timezone = "GMT+8")
    private LocalDateTime updateTime;

    @ApiModelProperty("文件名称")
    @TableField(value = "file_name")
    private String fileName;

    @ApiModelProperty("新文件名称")
    @TableField(value = "new_file_name")
    private String newFileName;

    @ApiModelProperty("是否通过")
    @TableField(value = "is_approved")
    private Boolean isApproved;

}
